package com.sxapp.util;

import java.io.File;
import java.io.IOException;

public class FilePath {
	public static String images = "/tmp/sxapp/imgs/";
	public static String news_txt = "/tmp/sxapp/txts/";
	//judge all path exits or not,if it's not then creat it.
	public static void judgePath() {
		File file[] = new File[2];
		file[0] = new File(images);
		file[1] = new File(news_txt);
		
		
		for (int i = 0; i < file.length; i++) {
			if(!file[i].exists()){
			    file[i].mkdirs();
			    try {
			        file[i].createNewFile();
			    } catch (IOException e) {
			        e.printStackTrace();
			    }
			}
		}
		
	}
}
